//
//  DLSMSButton.h
//  AFNetworking
//
//  Created by dgg_hzk on 2018/11/15.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface DLSMSButton : UIButton

@property (nonatomic, copy) void(^smsButtonAction)(DLSMSButton *sender);
@property (nonatomic, copy) NSString *showButtonText;    // 倒计时显示文字
@property (nonatomic, assign) NSInteger time;            //倒计时时间
@property (nonatomic, copy) NSString *showStopClockBtnText;   //倒计时结束文字
@property (nonatomic, copy) NSString *showRuningClockFrontBtnText;  //倒计时中秒数前面显示文字
@property (nonatomic, copy) NSString *showRuningClockBackBtnText;  //倒计时中秒数后面显示文字
@property (nonatomic, assign) BOOL isRevise;    //区分之前的,后面开发的必传yes
@property (nonatomic, strong) UIColor *showStopBackColor; //按钮背景颜色值
@property (nonatomic, strong) UIColor *showRuningBackColor; //按钮倒计时中背景颜色值
@property (nonatomic, strong) UIColor *showStopTextColor; //按钮文字颜色
@property (nonatomic, strong) UIColor *showRuningtextColor; //按钮倒计时中文字颜色

/**
 * 启动倒计时
 */
- (void)startClock;

/**
 * 启动倒计时
 @param time 倒数起始时间
 */
- (void)startClockWithTime:(NSInteger)time;

/**
 * 终止倒计时
 */
- (void)stopClock;

/**
 * 终止activity动画
 */
- (void)stopActivityAnimation;

@end

NS_ASSUME_NONNULL_END
